package user.fragment;

import java.io.Serializable;

public class Address implements Serializable {
    public int id;
    public String name;
    public String phone;
    public String address; // 完整地址（省市区+详细地址）
    public boolean isDefault;

    // 用于展示的构造函数（5参数）
    public Address(int id, String name, String phone, String address, boolean isDefault) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.address = address;
        this.isDefault = isDefault;
    }

    // 扩展构造函数（如需拆分省市区，可添加参数）
    public Address(int id, String name, String phone,
                   String provinceName, String cityName, String regionName,
                   String detailAddress, boolean isDefault) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.address = provinceName + cityName + regionName + detailAddress;
        this.isDefault = isDefault;
    }
}